/**
 * Created by 游永年 on 2019-01-20 00:08.
 * 商品详情页
 */

'use strict'
import React, {Component} from 'react';
import {connect} from 'dva';
import MySteps from "./MySteps/MySteps";
import PContent from "./PContent";

class ProductContent extends Component {
  render() {
    const {isBook} = this.props;
    const Dom = isBook ? <MySteps/> : <PContent/>;
    return Dom;
  }
}

ProductContent.propTypes = {};
const opts = ({product}) => {
  const {isBook = false} = product || {};
  return {isBook};
};
export default connect(opts)(ProductContent);
